package com.cgq.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * *  Author:陈国强
 * *  Description:
 * *  Date:2023/2/13 18:55
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
//实现序列化接口，否则无法存入redis数据库
public class User implements Serializable {

    private Integer id;

    private String name;

    private String password;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss ",timezone = "GMT+8")
    private Date ctime;
}
